<script setup>
import { onMounted, nextTick, ref, reactive, watch } from 'vue'
import mitt from '../assets/js/mitt';

let num=ref([])
mitt.on("test2",data=>{
  num.value=data
  // num=ref(data)
})

const addN=()=>{
  num.value[0]=200
}
</script>

<template>
  <el-button type="primary" size="default" @click="addN">子+</el-button>
  
  {{num}}
</template>

<style lang='less'>
</style>